<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of disableMenuBar</title>
  <meta name="keywords" content="disableMenuBar">
  <meta name="description" content="Customizes the figure toolbars. Input argument is the figure handle (hf)">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- ../menu.html trunk --><!-- menu.html utils -->
<h1>disableMenuBar
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>Customizes the figure toolbars. Input argument is the figure handle (hf)</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>function disableMenuBar(hf) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Customizes the figure toolbars. Input argument is the figure handle (hf)

 FLE: disabled for now. Need to determine which group includes the &quot;Edit
 Plot&quot; tool and keep this one on. Cannot test this easily, as the figure
 toolbar groups are only testable while compiled, and I have to compile
 through another person for now.</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function disableMenuBar(hf)</a>
0002 <span class="comment">% Customizes the figure toolbars. Input argument is the figure handle (hf)</span>
0003 <span class="comment">%</span>
0004 <span class="comment">% FLE: disabled for now. Need to determine which group includes the &quot;Edit</span>
0005 <span class="comment">% Plot&quot; tool and keep this one on. Cannot test this easily, as the figure</span>
0006 <span class="comment">% toolbar groups are only testable while compiled, and I have to compile</span>
0007 <span class="comment">% through another person for now.</span>
0008 
0009 all_tools = findall(hf); <span class="comment">% finds hidden tools</span>
0010 hide_tools = findall(all_tools,<span class="string">'ToolTipString'</span>,<span class="string">'Show Plot Tools and Dock Figure'</span>); 
0011 hide_tools = vertcat(hide_tools,findall(all_tools,<span class="string">'ToolTipString'</span>,<span class="string">'Hide Plot Tools'</span>)); 
0012 hide_tools = vertcat(hide_tools,findall(all_tools,<span class="string">'ToolTipString'</span>,<span class="string">'Open File'</span>)); 
0013 hide_tools = vertcat(hide_tools,findall(all_tools,<span class="string">'ToolTipString'</span>,<span class="string">'New Figure'</span>)); 
0014 hide_tools = vertcat(hide_tools,findall(all_tools,<span class="string">'ToolTipString'</span>,<span class="string">'Insert Legend'</span>)); 
0015 hide_tools = vertcat(hide_tools,findall(all_tools,<span class="string">'ToolTipString'</span>,<span class="string">'Insert Colorbar'</span>)); 
0016 hide_tools = vertcat(hide_tools,findall(all_tools,<span class="string">'ToolTipString'</span>,<span class="string">'Data Cursor'</span>)); 
0017 hide_tools = vertcat(hide_tools,findall(all_tools,<span class="string">'ToolTipString'</span>,<span class="string">'Rotate 3D'</span>)); 
0018 hide_tools = vertcat(hide_tools,findall(all_tools,<span class="string">'ToolTipString'</span>,<span class="string">'Save'</span>)); 
0019 hide_tools = vertcat(hide_tools,findall(all_tools,<span class="string">'ToolTipString'</span>,<span class="string">'Brush/Select Data'</span>)); 
0020 hide_tools = vertcat(hide_tools,findall(all_tools,<span class="string">'ToolTipString'</span>,<span class="string">'Link Plot'</span>)); 
0021 <span class="comment">% set(hide_tools,'Visible','Off')</span>
0022 
0023 hide_menu = findall(all_tools,<span class="string">'tag'</span>,<span class="string">'figMenuDesktop'</span>);
0024 hide_menu = vertcat(hide_menu,findall(all_tools,<span class="string">'tag'</span>,<span class="string">'figMenuWindow'</span>));
0025 hide_menu = vertcat(hide_menu,findall(all_tools,<span class="string">'tag'</span>,<span class="string">'figMenuTools'</span>));
0026 hide_menu = vertcat(hide_menu,findall(all_tools,<span class="string">'tag'</span>,<span class="string">'figMenuInsert'</span>));
0027 <span class="comment">% set(hide_menu,'visible','off')</span></pre></div>
<hr><address>Generated on Wed 04-Jun-2014 14:21:02 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>